package com.obas.type;

import com.ease.common.enums.EnumUtil;
import com.ease.common.enums.OptionalEnum;

public enum EntityObjectType implements OptionalEnum {

	SystemProject((short) 1, "SystemProject"),

	SystemScenario((short) 2, "SystemScenario"),

	SystemUsecase((short) 3, "SystemUsecase"),

	SystemFunction((short) 4, "SystemFunction"),

	TestcaseScript((short) 5, "TestcaseScript"),

	BusinessRepository((short) 6, "BusinessRepository"),

	BusinessScenario((short) 7, "BusinessScenario"),

	BusinessUsecase((short) 8, "BusinessUsecase"),

	BusinessFunction((short) 9, "BusinessFunction");

	private short value;

	private String text;

	private EntityObjectType(short value, String text) {
		this.value = value;
		this.text = text;
	}

	public static EntityObjectType get(short value) {
		return EnumUtil.get(EntityObjectType.class, value, SystemProject);
	}

	@Override
	public String getText() {
		return text;
	}

	@Override
	public String getName() {
		return name();
	}

	@Override
	public short getValue() {
		return value;
	}

}
